package com.example.admindatasource.model.bo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel("表结构返回值")
public class ModelStructureBO {

    @ApiModelProperty("字段名称")
    private String field;
    @ApiModelProperty("字段类型")
    private String type;
    @ApiModelProperty("备注")
    private String alias;
    @ApiModelProperty("elasticsearch类型、当type=object时表示object的深层结构")
    private Object esStruct;

    public Object getEsStruct() {
        return esStruct;
    }

    public void setEsStruct(Object esStruct) {
        this.esStruct = esStruct;
    }

    public String getAlias() {
        return alias;
    }

    public void setAlias(String alias) {
        this.alias = alias;
    }

    public String getField() {
        return field;
    }

    public void setField(String field) {
        this.field = field;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "ModelStructureBO{" +
                "field='" + field + '\'' +
                ", type='" + type + '\'' +
                ", alias='" + alias + '\'' +
                '}';
    }
}
